package com.mjk.manager.amis.core.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ArcSharding(dataSource = "", table = "sys_role", userName = "")
public class SysRole extends BaseEntity {

//    @Id
    @ExampleField
    private String id;
    @Filed(comment = "部门ID(NULL表示系统角色)", lenght = 64, cloum = "DEPT_ID")
    private String DEPT_ID;
    @Filed(comment = "角色名称", lenght = 64, cloum = "NAME")
    private String NAME;
    @Filed(comment = "角色描述", lenght = 256, cloum = "DESCR")
    private String DESCR;
    @Filed(comment = "序号", lenght = 10, cloum = "SEQ")
    private Integer SEQ;
    @Filed(comment = "删除标记", lenght = 1, cloum = "DELETED")
    private String DELETED;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Filed(comment = "创建时间", lenght = 19, cloum = "CREATED_AT")
    private LocalDateTime CREATED_AT;
    @Filed(comment = "创建人员", lenght = 64, cloum = "CREATED_BY")
    private String CREATED_BY;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Filed(comment = "更新时间", lenght = 19, cloum = "UPDATED_AT")
    private LocalDateTime UPDATED_AT;
    @Filed(comment = "更新人员", lenght = 64, cloum = "UPDATED_BY")
    private String UPDATED_BY;
    @Filed(comment = "所属部门", lenght = 64, cloum = "OWN_DEPT_ID")
    private String OWN_DEPT_ID;
    @Filed(comment = "所属系统", lenght = 64, cloum = "OWN_SYS_ID")
    private String OWN_SYS_ID;

    @Transient
    private String creater;
}